home *** CD-ROM | disk | FTP | other *** search
/ Motor Sport Digital Archive Collection 1960s / Motor Sport Digital Archive Collection 1960s.iso / main.swf / scripts / mx / core / BitmapAsset.as < prev    next >
Encoding:
Text File  |  2008-05-21  |  1.1 KB  |  48 lines

  1. package mx.core
  2. {
  3.    import flash.display.BitmapData;
  4.    
  5.    use namespace mx_internal;
  6.    
  7.    public class BitmapAsset extends FlexBitmap implements IFlexAsset, IFlexDisplayObject
  8.    {
  9.       mx_internal static const VERSION:String = "2.0.1.0";
  10.       
  11.       public function BitmapAsset(param1:BitmapData = null, param2:String = "auto", param3:Boolean = false)
  12.       {
  13.          super(param1,param2,param3);
  14.       }
  15.       
  16.       public function get measuredWidth() : Number
  17.       {
  18.          if(bitmapData)
  19.          {
  20.             return bitmapData.width;
  21.          }
  22.          return 0;
  23.       }
  24.       
  25.       public function get measuredHeight() : Number
  26.       {
  27.          if(bitmapData)
  28.          {
  29.             return bitmapData.height;
  30.          }
  31.          return 0;
  32.       }
  33.       
  34.       public function setActualSize(param1:Number, param2:Number) : void
  35.       {
  36.          width = param1;
  37.          height = param2;
  38.       }
  39.       
  40.       public function move(param1:Number, param2:Number) : void
  41.       {
  42.          this.x = param1;
  43.          this.y = param2;
  44.       }
  45.    }
  46. }
  47.  
  48.